{layout name="public:layout" /}
<form action="{:url('cate/doEdit')}" method="post">
    <input type="hidden" name="id" value="{$cate.id}">
    <div class="form-group row">
        <label for="name" class="col-sm-2 col-form-label">栏目名称</label>
        <div class="col-sm-8">
            <input type="text"  class="form-control" name="name" id="name" value="{$cate.name}">
        </div>
    </div>
    <div class="form-group row">
        <label for="email" class="col-sm-2 col-form-label">排序</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="email" name="sort" value="{$cate.sort}">
        </div>
    </div>

    <div class="form-group row">
        <label  class="col-sm-2 col-form-label">状态</label>
        <div class="col-sm-8">
            <label class="radio-inline"><input type="radio" value="1" name="status" {if condition="$cate.status_num eq 1"}checked="checked"{/if}>显示</label>
            <label class="radio-inline"><input type="radio" value="0" name="status" {if condition="$cate.status_num eq 0"}checked="checked"{/if}>隐藏</label>
        </div>
    </div>
    <div class="form-group row">
        <label  class="col-sm-2 col-form-label"></label>
        <div class="col-sm-8">
            <input type="submit" value="修改">
        </div>
    </div>
</form>